package cn.ticket.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.ticket.dao.NewsblackboardMapper;
import cn.ticket.model.Newsblackboard;
import cn.ticket.service.NewsBlackBoardService;
@Service
public class NewsBlackBoardServiceImpl implements NewsBlackBoardService {

	@Autowired
	NewsblackboardMapper newsBlackBoardMapper;
	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return newsBlackBoardMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Newsblackboard record) {
		// TODO Auto-generated method stub
		return newsBlackBoardMapper.insert(record);
	}

	@Override
	public int insertSelective(Newsblackboard record) {
		// TODO Auto-generated method stub
		return newsBlackBoardMapper.insertSelective(record);
	}

	@Override
	public Newsblackboard selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return newsBlackBoardMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Newsblackboard record) {
		// TODO Auto-generated method stub
		return newsBlackBoardMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Newsblackboard record) {
		// TODO Auto-generated method stub
		return newsBlackBoardMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Map<String, Object>> getValidateNews() {
		// TODO Auto-generated method stub
		return newsBlackBoardMapper.getValidateNews();
	}

}
